<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>form</title>
</head>
<body>
<h3>get方式</h3>
<form action="/JavaWeb_02/RequestDemo3" method="get">
    用户：<input type="text" name="username"><br>
    密码：<input type="password" name="password"><br>
    爱好：
    <input type="checkbox" name="hobby" value="somke"/>抽烟
    <input type="checkbox" name="hobby" value="drink"/>喝酒
    <input type="checkbox" name="hobby" value="perm"/>烫头
    <input type="submit" value="get提交...">
</form>
<h3>post方式</h3>
<form action="/JavaWeb_02/RequestDemo3" method="post">
    用户：<input type="text" name="username"><br>
    密码：<input type="password" name="password"><br>
    爱好：
    <input type="checkbox" name="hobby" value="somke"/>抽烟
    <input type="checkbox" name="hobby" value="drink"/>喝酒
    <input type="checkbox" name="hobby" value="perm"/>烫头
    <input type="submit" value="post提交...">
</form>
</body>
</html>